iphoneSetFileDataProtection
Type
command
Summary
Sets the data protection level of the given file.
Syntax
iphoneSetFileDataProtection <filename>, <dataProtection>
Description
Use the iphoneSetFileDataProtection command to set the data protection level of a file.
The iphoneSetFileDataProtection command sets the level of data protection applied to a file. The files protection level can be checked using the iphoneFileDataProtection function.
Parameters
Name | Type | Description |
---|---|---|
filename | The full path to the file to be protected. | |
dataProtection | enum | The level of protection to apply to the file |
Examples
iphoneSetFileDataProtection myFile, "none"
iphoneSetFileDataProtection specialFolderPath("documents") & "/appointments.txt", "complete"
Related
command: iphoneSetDoNotBackupFile
function: iphoneFileDataProtection, iphoneDoNotBackupFile
message: protectedDataWillBecomeUnavailable, protectedDataDidBecomeAvailable
Compatibility and Support
Introduced
LiveCode 5.5.1
OS
ios
Platforms
mobile